﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<TestWeb.Models.ViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
	<!-- start content -->
	<div id="content">
		<!--  start page-heading -->
		<div id="page-heading">
            <span style="font-size:10px; font-weight:bold; color: Red;"><%= Model.LoaiTinTucs[0].TenLoaiTinTuc %></span>
			<h1>TinTuc Management</h1>
		</div>
		<!-- end page-heading -->
        <table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
	        <tr>
		        <th rowspan="3" class="sized">
			        <img src="../../../Content/AdminImages/shared/side_shadowleft.jpg" width="20" height="300" alt="" />
		        </th>
		        <th class="topleft"></th>
		        <td id="tbl-border-top">&nbsp;</td>
		        <th class="topright"></th>
		        <th rowspan="3" class="sized">
			        <img src="../../../Content/AdminImages/shared/side_shadowright.jpg" width="20" height="300" alt="" />
		        </th>
	        </tr>
	        <tr>
		        <td id="tbl-border-left"></td>
		        <td>
			        <!-- start content-table-inner -->
			        <div id="content-table-inner">
                        <!--  start step-holder -->
		                <div id="step-holder">
			                <div id="view-all-items-no" class="step-no">1</div>
			                <div id="view-all-items-left" class="step-dark-left">
                                <a id="view-all-items-ref" href="<%= Url.Action("SelectTinTucByLoaiTinTuc", "Admin", new { IDLoaiTinTuc = Model.LoaiTinTucs[0].ID }) %>">View All Items</a>
                            </div>
			                <div id="view-all-items-right" class="step-dark-right">&nbsp;</div>

			                <div id="add-new-item-no" class="step-no-off">2</div>
			                <div id="add-new-item-left" class="step-light-left">
                                <a id="add-new-item-ref" href="<%= Url.Action("EnterInsertTinTuc", "Admin", new { IDLoaiTinTuc = Model.LoaiTinTucs[0].ID }) %>">Add New Item</a>
                            </div>
			                <div id="add-new-item-right" class="step-light-right">&nbsp;</div>

			                <div id="delete-items-no"  class="step-no-off">3</div>
			                <div id="delete-items-left" class="step-light-left">
                                <a id="delete-items-ref" href="<%= Url.Action("EnterDeleteRangeOfTinTuc", "Admin", new { IDLoaiTinTuc = Model.LoaiTinTucs[0].ID }) %>">Delete Items</a>
                            </div>
			                <div id="delete-items-right"  class="step-light-round">&nbsp;</div>
			                <div class="clear"></div>
		                </div>
		                <!--  end step-holder -->
                        <!-- start partial div -->
                        <div id="PartialDiv">
                            <% var partialRequest = ViewData["PartialRequest"].ToString(); %>
                            <% switch (partialRequest)
                               { %>
                                <% case "List": %>
                                    <% Html.RenderPartial("Partials/Prt_TinTuc_List", Model); %>
                                <% break; %>

                                <% case "Insert": %>
                                    <% Html.RenderPartial("Partials/Prt_TinTuc_Insert", Model); %>
                                <% break; %>

                                <% case "Delete": %>
                                    <% Html.RenderPartial("Partials/Prt_TinTuc_Delete", Model); %>
                                <% break; %>
                            <% } %>
			                
		                </div>
                        <!-- end partial div -->
			        </div>
		        </td>
                <td id="tbl-border-right"></td>
	        </tr>
            <tr>
		        <th class="sized bottomleft"></th>
		        <td id="tbl-border-bottom">&nbsp;</td>
		        <th class="sized bottomright"></th>
	        </tr>
        </table>
	</div>
	<!--  end content -->
</asp:Content>
